package cn.edu.sdjzu.xg21.domain;

import java.io.Serializable;

public class School implements Comparable<School>, Serializable {
    public School(Integer id, String description, String no, String remarks){
        this.id = id;
        this.description = description;
        this.no = no;
        this.remarks = remarks;
    }

    // 一定要有get方法
    public Integer getId(){
        return this.id;
    }
    public String getDescription(){
        return this.description;
    }
    public String getNo(){
        return this.no;
    }
    public String getRemarks(){
        return this.remarks;
    }

    @Override
    public int compareTo(School o) {
        return o.id - this.id;
    }

    @Override
    public String toString(){
        final String TAB ="   ";
        return "{" + "id:" + this.id + "," + TAB +
                "description:" + this.description + "," + TAB +
                "no:" + this.no + "," + TAB +"remarks:" + this.remarks + "}\n";
    }
    private Integer id;
    private String description;
    private String no;
    private String remarks;
}
